package com.ciwong.epaper.widget;

import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.view.Window;
import android.widget.TextView;

import com.ciwong.epaper.R;
import com.ciwong.libs.utils.CWLog;

/**
 * Created by neo on 2016/7/4.
 */
public class TopWarningMsgDialog extends Dialog{

    private TextView tv_warning_text;
    private  String mWarningText;
    private  Context mContext;

    public TopWarningMsgDialog(Context context,String warnTest) {
        super(context, R.style.dialog_teacher_comment);
        mWarningText=warnTest;
        this.mContext=context;
    }

    public TopWarningMsgDialog(Context context,String warnTest,int style) {
        super(context, style);
        mWarningText=warnTest;
        this.mContext=context;
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        // TODO Auto-generated method stub
        super.onCreate(savedInstanceState);
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        setContentView(R.layout.dialog_top_warning_msg);
        tv_warning_text = (TextView) findViewById(R.id.tv_warning_text);
        tv_warning_text.setText(mWarningText);
    }


}
